﻿@using giaoxuhaison.Models
@model giaoxuhaison.Models.ManageUserModels

@{
    ViewBag.Title = "ManageUsers";
    Layout = "~/Views/Admin/_LayoutAdmin.cshtml";
}

@*quan ly thong tin loi chua hang tuan*@

<script src="@Url.Content("~/Scripts/CommandGrid.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/TrackChange.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Common.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/grid.locale-en.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.jqGrid.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/tinymce/tinymce.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Admin/Users.js")" type="text/javascript"></script>

<script type="text/javascript">
    var GetAllInformPath = '@Url.Action("GetAllUsers", "Admin")';
    var dateIconURL = '@Url.Content("~/Images/calendar.gif")';    
</script>

@using (Html.BeginForm())
{
    @Html.ValidationSummary(false)
    <div class="Title">
        <img src="~/Images/lists.ico" align="absmiddle" />
        <bold>QUẢN LÝ USER</bold>
    </div>
    
    <div class="PanelBoder">
    </div>
    
    <div class="NewsAlls">
       @Html.HiddenFor(m => m.UserID)
        <div class="Column">
            <div class="divInput">
                @Html.LabelFor(m => m.Condition_Find, new { @class = "lblInput" })
                @Html.TextBoxFor(m => m.Condition_Find, new { @class = "Input" })                
            </div>            
        </div>
        
        <div class=" divButton">
            <input type="button" id="btnFind" class="btnCmd ui-button-header" value="Tìm kiếm" />
        </div>        
    </div>    
    
    <div class="NewsAlls">
        <div class="Column">
            <div class="divInput">
                @Html.LabelFor(m => m.UserName, new { @class = "lblInput" })
                @Html.TextBoxFor(m => m.UserName, new { @class = "Input" })                
            </div>
            <div class="divInput">
                @Html.LabelFor(m => m.DisplayName, new { @class = "lblInput" })
                @Html.TextBoxFor(m => m.DisplayName, new { @class = "Input" })                
            </div>            
            <div class="divInput">
                @Html.LabelFor(m => m.UserPass, new { @class = "lblInput" })
                @Html.TextBoxFor(m => m.UserPass, new { @class = "Input" })                
            </div>
            <div class="divInput">
                @Html.LabelFor(m => m.RoleID, new { @class = "lblInputFile" })
                @Html.DropDownListFor(m => m.RoleID, new SelectList((List<ListGroupModels>)ViewData["lstNewsGrp"], "GroupID", "GroupName"), new { style = "width:250px;" })
            </div>            
             <div class="divInput">
                @Html.LabelFor(m => m.Email, new { @class = "lblInput" })
                @Html.TextBoxFor(m => m.Email, new { @class = "Input" })                
            </div>
        </div>
        <div class="ColumnRight">
            <div class="divInput">
                @Html.LabelFor(m => m.CreationDate, new { @class = "lblInput" })
                @Html.TextBoxFor(m => m.CreationDate, new { @class = "datepicker", @readonly = "true" })
               @* <input type="text" id="PublishDate" readonly="true" class="datepicker" />*@
            </div>
            <div class="divInput">
                @Html.CheckBoxFor(m => m.IsActive)
                @Html.LabelFor(m => m.IsActive, new { @class = "lblcheckbox" })                                
            </div> 
            <div class="divInput">
                @Html.CheckBoxFor(m => m.Locked)
                @Html.LabelFor(m => m.Locked, new { @class = "lblcheckbox" })                                
            </div> 
        </div>
        
        <div class="PanelBoder">
        </div>
       
        <div class=" divButton">
            <input type="button" id="btnRefresh" class="btnCmd ui-button-header" value="Làm mới"/>
            <input type="submit" id="btnUpDate" class="btnCmd ui-button-header" value="Cập nhật" />
            @*<input type="button" id="btnDelete" class="btnCmd ui-button-header" value="Xóa"/>*@
        </div>
    </div>
    
    <div class="divNewsAlls">
        <table id="grdData">
        </table>
        <!--Define Navigation bar under grid-->
        <div id="pager">
        </div>
    </div> 
    
}


